package com.yiyi.credit.manage.model.entity;

import io.swagger.annotations.ApiModelProperty;

import javax.persistence.Column;
import java.math.BigDecimal;


public class Product extends BaseEntity {

    @Column(name = "product_no", columnDefinition = "产品编号")
    @ApiModelProperty(value = "产品编号")
    private String productNo;

    @Column(name = "product_name", columnDefinition = "产品名称")
    @ApiModelProperty(value = "产品名称")
    private String productName;

    @Column(name = "status", columnDefinition = "产品状态（1：待发布，2：已发布，3：退回修改，4：已拒绝，5：已下架）")
    @ApiModelProperty(value = "产品状态（1：待发布，2：已发布，3：退回修改，4：已拒绝，5：已下架）")
    private Integer status;

    @Column(name = "add_time", columnDefinition = "添加时间")
    @ApiModelProperty(value = "添加时间")
    private Long addTime;

    @Column(name = "publish_time", columnDefinition = "发布时间")
    @ApiModelProperty(value = "发布时间")
    private Long publishTime;

    @Column(name = "shelve_time", columnDefinition = "下架时间")
    @ApiModelProperty(value = "下架时间")
    private Long shelveTime;

    @Column(name = "type", columnDefinition = "产品类型（1：集合标产品，2:散标产品）")
    @ApiModelProperty(value = "产品类型（1：集合标产品，2，散标产品）")
    private Integer type;

    @Column(name = "to_back_reason", columnDefinition = "退回原因")
    @ApiModelProperty(value = "退回原因")
    private String toBackReason;

    @Column(name = "current_inventory", columnDefinition = "当前库存")
    @ApiModelProperty(value = "当前库存")
    private BigDecimal currentInventory;

    @Column(name = "is_deleted", columnDefinition = "是否删除，0：未删除，1：已删除")
    @ApiModelProperty(value = "是否删除，0：未删除，1：已删除")
    private short isDeleted;


    @Column(columnDefinition = "来源， 1非存管，2存管")
    private Short source;

    public Short getSource() {
        return source;
    }

    public void setSource(Short source) {
        this.source = source;
    }

    public String getToBackReason() {
        return toBackReason;
    }

    public void setToBackReason(String toBackReason) {
        this.toBackReason = toBackReason;
    }

    public String getProductNo() {
        return productNo;
    }

    public void setProductNo(String productNo) {
        this.productNo = productNo;
    }

    public String getProductName() {
        return productName;
    }

    public void setProductName(String productName) {
        this.productName = productName;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Long getAddTime() {
        return addTime;
    }

    public void setAddTime(Long addTime) {
        this.addTime = addTime;
    }

    public Long getPublishTime() {
        return publishTime;
    }

    public void setPublishTime(Long publishTime) {
        this.publishTime = publishTime;
    }

    public Long getShelveTime() {
        return shelveTime;
    }

    public void setShelveTime(Long shelveTime) {
        this.shelveTime = shelveTime;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public BigDecimal getCurrentInventory() {
        return currentInventory;
    }

    public void setCurrentInventory(BigDecimal currentInventory) {
        this.currentInventory = currentInventory;
    }

    public short getIsDeleted() {
        return isDeleted;
    }

    public void setIsDeleted(short isDeleted) {
        this.isDeleted = isDeleted;
    }
}
